import java.util.Scanner;

public class Test12 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入m");
        int m = sc.nextInt();
        if (m >= 1) {
            System.out.print("1 ");
        }
        if (m >= 2) {
            System.out.print("1 ");
        }
        int first = 1;
        int second = 1;
        for (int i = 3; i <= m; i++) {
            int next = first + second;
            System.out.print(next + " ");
            first = second;
            second = next;
        }
    }
}